package com.aier.user.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 新鲜事评论表
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "fresh_comment", catalog = "abc")
public class FreshComment implements java.io.Serializable {

    // 标识
    private Long fcid;
    // 用户id
    private Long fcuid;
    // 评论的新鲜事或评论的作者的uid
    private Long rfcuid;
    // 新鲜事id
    private Long fid;
    // 内容
    private String content;
    // 评论的对象的内容
    private String rcontent;
    // 1评论2回复
    private Short type;
    // 创建时间
    private Timestamp cdate;
    
    // 昵称
    private String nickname;
    // 头像
    private String headimg;
    
    // 评论的新鲜事或评论的作者的昵称
    private String rnickname;
    
    // 新鲜事内容
    private Fresh fresh;
    
    // Constructors

    /** default constructor */
    public FreshComment() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "fcid", unique = true, nullable = false)
    public Long getFcid() {
        return this.fcid;
    }

    public void setFcid(Long fcid) {
        this.fcid = fcid;
    }
    @Column(name = "fcuid", nullable = false, length = Constant.num_20)
    public Long getFcuid() {
        return fcuid;
    }

    public void setFcuid(Long fcuid) {
        this.fcuid = fcuid;
    }
    @Column(name = "fid", nullable = false, length = Constant.num_20)
    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public Fresh getFresh() {
        return fresh;
    }

    public void setFresh(Fresh fresh) {
        this.fresh = fresh;
    }
    @Column(name = "rcontent")
    public String getRcontent() {
        return rcontent;
    }

    public void setRcontent(String rcontent) {
        this.rcontent = rcontent;
    }
    @Column(name = "rfcuid")
    public Long getRfcuid() {
        return rfcuid;
    }

    public void setRfcuid(Long rfcuid) {
        this.rfcuid = rfcuid;
    }
    @Column(name = "type")
    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getRnickname() {
        return rnickname;
    }

    public void setRnickname(String rnickname) {
        this.rnickname = rnickname;
    }

}